using System;
using System.Runtime.Serialization;

namespace Phoenix.Exceptions
{
    [Serializable]
    public class ViewModelActivationFailedException : Exception
    {
        public ViewModelActivationFailedException(string viewModelName, Exception exception) : 
            base(string.Format("Failed to activate viewmodel {0}", viewModelName), exception)
        {
            
        }

#if !WINDOWS_PHONE
        protected ViewModelActivationFailedException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
#endif
    }
}